package com.mjw.tender.controller.fallback;

import com.mjw.tender.domain.TbUser;
import com.mjw.tender.dto.LoginParam;
import com.mjw.tender.dto.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;

public class LoginControllerFallBack {
    public static ResponseResult testFallBack(LoginParam loginParam, Throwable ex){
        System.out.println("hahah");
        return null;
    }

    public static ResponseResult addUserReturnIdFallBack(@RequestBody TbUser tbUser,Throwable ex){
        System.out.println("test something");
        return new ResponseResult(ResponseResult.CodeStatus.FAIL,"添加用户失败");
    }
}
